package com.hfjyz.registration.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.validation.Errors;
import org.springframework.web.servlet.mvc.SimpleFormController;

import com.hfjyz.registration.command.LogInfoListCommand;
import com.hfjyz.registration.service.LogInfoService;

public class LogInfoListController extends SimpleFormController {

    private LogInfoService logInfoService;

    /*
     * (non-Javadoc)
     * 
     * @see org.springframework.web.servlet.mvc.AbstractWizardFormController#
     * referenceData(javax.servlet.http.HttpServletRequest, java.lang.Object,
     * org.springframework.validation.Errors, int)
     */
    @SuppressWarnings("rawtypes")
    @Override
    protected Map referenceData(HttpServletRequest request, Object command,
            Errors errors) throws Exception {
        LogInfoListCommand cmd = (LogInfoListCommand) command;
        return logInfoService.initLogInfo(cmd, errors);
    }

    public LogInfoService getLogInfoService() {
        return logInfoService;
    }

    public void setLogInfoService(LogInfoService logInfoService) {
        this.logInfoService = logInfoService;
    }

}